package com.qf.gdbh;

public class ZSimpl2 implements ZS{

//    public static void main(String[] args) {
//        System.out.println(Math.sqrt(25));
//        System.out.println(Math.sqrt(9));
//    }

    @Override
    public boolean isZs(int num) {
        for (int i = 2; i < Math.sqrt(num); i++) {
            if (num%i==0){
                return false;
            }
        }
        return true;
    }

    public static ZSimpl2 createObj(){
        ZSimpl2 zSimpl2 = new ZSimpl2();

        return zSimpl2;
    }


}
